home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_02 / pipkin / hello.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-07  |  1.3 KB  |  47 lines

  1. [LISTING 1]
  2. /*==========================================================================*\
  3.  
  4.    hello.c
  5.  
  6. \*--------------------------------------------------------------------------*/
  7.  
  8. #include "stdio.h"
  9.  
  10. #define PUBLIC
  11. #define PRIVATE static
  12.  
  13. /*==========================================================================*\
  14.  
  15.    main()
  16.  
  17. \*--------------------------------------------------------------------------*/
  18.  
  19. PUBLIC void main(void)
  20. {
  21.  
  22.    /*-----------------------------------------------------------------------*\
  23.       Initialization
  24.    \*-----------------------------------------------------------------------*/
  25.  
  26.    init_stdio();
  27.  
  28.    /*-----------------------------------------------------------------------*\
  29.       Display a greeting...
  30.    \*-----------------------------------------------------------------------*/
  31.  
  32.    puts("Hello, embedded world!");
  33.  
  34.    /*-----------------------------------------------------------------------*\
  35.       If you return from main(), the startup code should invoke a reset...
  36.    \*-----------------------------------------------------------------------*/
  37.  
  38.    puts("About to reset.  Goodbye!");
  39.  
  40. }
  41.  
  42.  
  43. /*==========================================================================*\
  44.    End of source file.
  45. \*==========================================================================*/
  46.  
  47.